package com.ss.android.article.base.feature.detail.presenter;

import com.ss.android.action.a.a.Comment;
import com.ss.android.article.base.feature.model.Article;
import com.ss.android.model.AbsArticle;
import java.util.List;

public final class CommentFetcher {
    public final int a;
    public final AbsArticle article;
    public final long groupId;
    public final long topCommentId;
    public final int tabIndex;
    public final int offset;
    public ArticleTabComment articleTabComment;
    public int errorCode;
    public String[] i;
    public int j;
    public List<Comment> zzcomment;

    public CommentFetcher(int arg4, AbsArticle absArticle, int tabIndex, int offset, long topCommentId) {
        this.a = arg4;
        this.offset = offset;
        this.groupId = absArticle.groupId;
        this.article = absArticle;
        this.tabIndex = Math.min(1, Math.max(0, tabIndex));
        this.topCommentId = topCommentId;
        if((this.article instanceof Article)) {
            this.zzcomment = ((Article)this.article).zzcomment;
        }
    }

    public final String getItemKey() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(this.groupId);
        stringBuilder
                .append('_')
                .append(this.tabIndex)
                .append('_')
                .append(this.a);
        return stringBuilder.toString();
    }
}

